// import { request } from 'umi';
import request from '@/utils/http';
/** 登录 */
export async function login(data, options) {
  return request('/my/sys/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data,
    ...(options || {}),
  });
}

/** 分页查询标准列表 */
export async function getMyList(params, options) {
  return request('/my/api/getStandardType', {
    method: 'get',
    headers: {
      'Content-Type': 'application/json',
    },
    params,
    ...(options || {}),
  });
}

/** 获取路由表 */
// export async function getMyRouteList(data, options) {
//   return request('/my/api/getRouteList', {
//     method: 'get',
//     headers: {
//       'Content-Type': 'application/json',
//     },
//     data,
//     ...(options || {}),
//   });
// }
